package com.jsh.service;

import com.jsh.pojo.Admin;

import java.util.List;

public interface AdminService {
   public Admin findByNameAndPassword(String name,String password);

   public int deleteByPrimaryKey(Integer id);//根据id删除用户

  public int insert(Admin record);//插入用户

   public Admin selectByPrimaryKey(Integer id);//根据id查询

  public List<Admin> selectAll();//查询所有用户

   public int updateByPrimaryKey(Admin record);//修改用户
}
